package com.ywg.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.ywg.entity.Attorney;
import com.ywg.service.AttorneyService;
import com.ywg.mapper.AttorneyMapper;
import jakarta.annotation.Resource;
import org.springframework.stereotype.Service;

/**
* @author 24698
* @description 针对表【attorney(律师)】的数据库操作Service实现
* @createDate 2025-03-04 15:02:09
*/
@Service
public class AttorneyServiceImpl extends ServiceImpl<AttorneyMapper, Attorney>
    implements AttorneyService{
    @Resource
    private AttorneyMapper attorneyMapper;

    /**
     * 根据名称获取对应的id
     * @param name 姓名
     * @return id
     */
    @Override
    public Long getAttId(String name) {
        return attorneyMapper.getAttId(name);
    }
}




